import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/qsg/recharge/list",
    method: "get",
    params: params,
  });
}

export function createRecharge(data) {
  return request({
    url: "/qsg/recharge/create",
    method: "post",
    data: data,
  });
}

export function deleteRecharge(id) {
  return request({
    url: "/qsg/recharge/delete/" + id,
    method: "get",
  });
}

export function getRecharge(id) {
  return request({
    url: "/qsg/recharge/" + id,
    method: "get",
  });
}

export function updateRecharge(id, data) {
  return request({
    url: "/qsg/recharge/update/" + id,
    method: "post",
    data: data,
  });
}
